﻿using BaseNet.Core.Dtos;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseNet.Application.System.User.Dto
{
    /// <summary>
    /// 系统用户编辑input
    /// </summary>
    public class SysUserSaveInput:PrivateEntityBase
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Required(ErrorMessage = "账号不能为空"), MinLength(5, ErrorMessage = "用户名不能少于 5 位字符")]
        public string Account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool? IsActive { get; set; }

        /// <summary>
        /// 系统角色ids
        /// </summary>
        public string RoleIds { get; set; }
    }
}
